@import "~antd/lib/style/themes/default.less";

.customLayoutBox {
    :global .ant-layout {
        background: #FFFFFF !important;
    }

    .content {
        margin: 16px;
        font-size: 16px;
        padding-top: @layout-header-height;
    }
}

.leftCard {
    width: 280px;

    .leftCard_header {
        height: 70px;
        padding: 12px;
        display: flex;
        
        font-size: 18px;
        font-weight: 500;
        color: #000000;

        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #DFE7F080;

        >span {
            white-space: nowrap;
            user-select: none;
        }
    }

    .leftCard_addCookies {
        // border: 1px solid;
        border: 1px solid #F8F8FF33;
        // border-image: linear-gradient(0deg, #E5EAFF, #F0F2FF, #F8F8FF) 10 10;
        background: linear-gradient(0deg, #E5EAFF33 0%, #F0F2FF33 45%, #F8F8FF33 100%);
        border-radius: 20px;
        padding: 5px 10px;

        user-select: none;
    }

    .leftCard_contentList {
        // padding: 10px 0;
        height: 100%;
    }

    .leftCard_content_List {
        height: calc(100% - 70px);
        overflow-y: auto;

        scrollbar-width: none;
        -ms-overflow-style: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .leftCard_contentLi {
        cursor: pointer;
        padding: 10px;
        color: #000000;
        border-left: 3px solid rgba(216, 224, 255, 0);
        border-bottom: 1px solid #DFE7F080;

        .leftCard_li_time>span:last-child {
            display: none;
        }

        &:hover {
            color: #3E5BFF;
            background: #EBF2FF;
            border-left: 3px solid #3E5BFF;
        }

        &:hover .leftCard_li_time>span:last-child {
            display: inline-block;
        }
    }

    .leftCard_li_time {
        margin: 0px;
        color: #FFFFFF;
        font-size: 16px;
        opacity: 0.75;
        display: flex;
        justify-content: space-between;
    }

    .leftCard_contentLi_active {
        padding: 10px;
        color: #3E5BFF;
        background: #EBF2FF;
        border-left: 3px solid #3E5BFF;
        border-bottom: 1px solid rgba(216, 224, 255, 0.15);

        .leftCard_li_time>span:last-child {
            display: inline-block;
        }
    }
}

.chatQuestion {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding-right: 16px;
    // text-align: center;
    border-radius: 12px;
    box-shadow: 0px 1px 7px 0px rgba(4, 0, 0, 0.08);

    textarea {
        resize: none;
        border-radius: 12px;
        border: 0px;
        padding: 10px 12px;
        font-size: 16px;
    }

    :global {
        .ant-input[disabled] {
            color: #FFFFFF;
            background-color: #FFFFFF;
            cursor: not-allowed;
            opacity: 1;
        }
    }
}

.smartnlp-chatRecord {
    text-align: center;
    margin: 10px 0;
}

.smartnlp-chatRecord a {
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    background: #F8F8FF80;
    padding: 3px 25px;
    border-radius: 25px;
}

.smartnlp-chat-msg-content {
    height: calc(100% - 180px);
    overflow-y: auto;

    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.smartnlp-msg-history-list {
    padding: 0px;
    // height: 100%;
}

.smartnlp-msg-content {
    p {
        margin: 0px;
    }
}

.smartnlp-msg-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.PJicon {
    // width: 164px;
    display: flex;
    // justify-content: space-between;
    float: right;
    user-select: none;
    margin-left: 20px;

    span {
        background: #F5F6F9;
        border-radius: 50%;
        padding: 8px;
        display: flex;
    }
}

.smartnlp-msg-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;

    .smartnlp-msg-footer-tagList {
        display: flex;
        margin: 16px 0;
        justify-content: center;
    }

    .smartnlp-msg-footer-tag {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        margin-right: 16px;
        background: #FFFFFF;
        box-shadow: 0px 0px 16px 0px rgba(85, 108, 235, 0.16);
        border-radius: 24px;

        user-select: none;
    }
}

.smartnlp-common-content {
    margin: 10px 0 0;
}

.smartnlp-common-content1 {
    margin: 10px 0 0;
}

.smartnlp-msg-answer p img {
    max-width: 560px;
    vertical-align: middle;
}

.rightCard {
    min-width: 280px;

    .rightCard_contentList {
        padding: 10px;
    }

    .rightCard_content_List {
        height: calc(100vh - 128px);
        overflow-y: auto;

        scrollbar-width: none;
        -ms-overflow-style: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .rightCard_contentLi {
        // background: linear-gradient(0deg, rgb(255, 255, 255) 21%, rgb(230, 236, 255) 82%);
        border-radius: 8px;
        // height: 56px;
        // height: 88px;
        // padding: 10px;

        height: 77px;
        padding: 10px;
        margin-bottom: 10px;

        display: flex;
        justify-content: space-between;

        >span {
            font-weight: 500;
        }

        >span>span {
            background: #FF3444;
            border-radius: 12px;
            padding: 3px 10px;
            color: #FFFFFF;
            margin-right: 8px;
            font-weight: 500;
        }

        // >span>i {
        //     color: rgb(43, 71, 230);
        //     background: #FFFFFF;
        //     padding: 5px;
        //     border-radius: 50%;
        // }

        .titleName {
            display: inline-block;
            max-width: calc(100% - 30px);
            word-break: keep-all;
            text-overflow: ellipsis;
            overflow: hidden;
            vertical-align: bottom;
        }
    }
}

.knowledgeTab {
    :global {
        .ant-tabs-nav {
            margin-top: 10px;
        }

        .ant-tabs-nav .ant-tabs-tab-active {
            background: #E6ECF6;
            text-align: left !important;
            position: relative;
        }

        .ant-tabs-nav .ant-tabs-tab {
            text-align: left !important;
        }

        .ant-tabs-content .ant-tabs-tabpane-active {
            min-height: 500px;
            padding-bottom: 80px
        }
    }

    .knowledgeTabBtn {
        position: absolute;
        bottom: 24px;
        right: 24px;
    }
}


.answer-card-show {
    // display: flex;
    // align-items: center;
    padding: 8px 0 0;
    // white-space: nowrap;
    width: 100%;
    overflow: hidden;
    margin-bottom: -8px;

    .answer-card-ul {
        // display: flex;
        // flex-flow: row wrap;
        // margin: 0 0 -8px 8px;
        margin: 0 0 0 8px;
        padding: 0px;
    }

    .answer-card-li {
        background: #2D49E61F;
        border-radius: 8px;
        padding: 5px 14px;
        margin: 0 4px 8px;
        font-weight: 500;
        color: #2B47E6;
        cursor: pointer;
        display: inline-block;

        &:last-child {
            margin: 0 0 8px 4px;
        }

        &:hover {
            background: #2D49E63D;
        }
    }
}

.bodyCard {
    :global {
        .ant-drawer-mask {
            border-radius: 12px 12px 0 0;
        }

        .ant-drawer-content-wrapper {
            background: linear-gradient(0deg, #F3FAFF 0%, #FFFFFF 11%);
            box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.15);
            border-radius: 12px 12px 0px 0px;
        }

        .ant-drawer-content {
            border-radius: 12px 12px 0 0;
        }

        .ant-drawer-header {
            text-align: center;
            background: linear-gradient(0deg, #FFFFFF 0%, #F3FAFF 100%) !important;
            border-bottom: 1px solid #F0F0F000 !important;
        }

        .ant-drawer-body {
            overflow: auto;
            height: calc(100% - 56px);
        }
    }
}
.historyQa{
  margin: 0px;
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}